﻿namespace AmazeUI.bll.Open.Weixin
{
    public class WxUseraccess_token:WxCode
    {
        
        /// <summary>
        /// 用户的唯一标识
        /// </summary>
        public string openid { get; set; }
        public string access_token { get; set; }
        public string expires_in { get; set; }
        public string refresh_token { get; set; }

        public string scope { get; set; }

        /// <summary>
        /// 只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段。详见：获取用户个人信息（UnionID机制）

        /// </summary>
        public string unionid { get; set; }
 

       
        /// <summary>
        /// 检验授权凭证（access_token）是否有效
        /// </summary>
        /// <returns></returns>
        public bool Isaccess_token()
        {
            return Wx.Isaccess_token(this.openid, this.access_token);
        }
    }
}